package com.itheima.pojo;

import java.util.List;

public class Favorite {
    private int fid;
    private int user_id;
    private int route_id;
    private List<Route> routeList;

    public Favorite() {
    }

    public Favorite(int fid, int user_id, int route_id, List<Route> routeList) {
        this.fid = fid;
        this.user_id = user_id;
        this.route_id = route_id;
        this.routeList = routeList;
    }

    @Override
    public String toString() {
        return "Favorite{" +
                "fid=" + fid +
                ", user_id=" + user_id +
                ", route_id=" + route_id +
                ", routeList=" + routeList +
                '}';
    }

    public List<Route> getRouteList() {
        return routeList;
    }

    public void setRouteList(List<Route> routeList) {
        this.routeList = routeList;
    }

    public int getId() {
        return fid;
    }

    public void setId(int fid) {
        this.fid = fid;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getRoute_id() {
        return route_id;
    }

    public void setRoute_id(int route_id) {
        this.route_id = route_id;
    }
}
